package com.ruoyi.system.mapper;

import java.util.List;
import java.util.Map;
import java.util.Objects;

import com.ruoyi.system.domain.ShipmentOrderDetail;
import com.ruoyi.system.dto.ShipmentOrderDetailDTO;
import com.ruoyi.system.vo.ShipmentOrderDetailVO;
import org.apache.ibatis.annotations.Param;

/**
 * 出库单详情Mapper接口
 * 
 * @author ruoyi
 * @date 2024-12-12
 */
public interface ShipmentOrderDetailMapper 
{
    /**
     * 查询出库单详情
     * 
     * @param shipmentOrderDetail 出库单详情主键
     * @return 出库单详情
     */
    public ShipmentOrderDetail selectShipmentOrderDetailById(ShipmentOrderDetail shipmentOrderDetail);

    /**
     * 查询出库单详情列表
     * 
     * @param shipmentOrderDetail 出库单详情
     * @return 出库单详情集合
     */
    public List<ShipmentOrderDetailDTO> selectShipmentOrderDetailList(ShipmentOrderDetail shipmentOrderDetail);

    /**
     * 查询出库单详情列表
     *
     * @param shipmentOrderDetail 出库单详情
     * @return 出库单详情集合
     */
    public List<Map<String, Object>> selectShipmentOrderList(ShipmentOrderDetail shipmentOrderDetail);


    /**
     * 新增出库单详情
     * 
     * @param shipmentOrderDetail 出库单详情
     * @return 结果
     */
    public int insertShipmentOrderDetail(ShipmentOrderDetail shipmentOrderDetail);

    /**
     * 修改出库单详情
     * 
     * @param shipmentOrderDetail 出库单详情
     * @return 结果
     */
    public int updateShipmentOrderDetail(ShipmentOrderDetail shipmentOrderDetail);

    /**
     * 删除出库单详情
     * 
     * @param id 出库单详情主键
     * @return 结果
     */
    public int deleteShipmentOrderDetailById(Long id);

    /**
     * 批量删除出库单详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShipmentOrderDetailByIds(Long[] ids);

    /**
     * 修改出库订单详情状态
     * @param detail
     */
    int updateShipmentOrderDetailState(ShipmentOrderDetailVO detail);

    /**
     * 查询总数据
     * @param shipmentOrderId
     * @return
     */
    public List<ShipmentOrderDetail> query(@Param("shipmentOrderId") String shipmentOrderId);

    /**
     * 查询已经出库和作废的数据
     * @param shipmentOrderId
     * @return
     */
    public List<ShipmentOrderDetail> selectNubmer(@Param("shipmentOrderId")String shipmentOrderId);

    int selectStatussChuku(int status);
}
